library _TextItemCard;

import 'package:flutter/material.dart';

//自动上架/拣选/复核卡片文字Widget
class TextItemCard extends StatelessWidget {
  final String name;
  final String value;
  TextItemCard({Key key, @required this.name, this.value}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      padding: EdgeInsets.all(15),
      decoration: BoxDecoration(
          color: Colors.white,
          border:
              Border(bottom: BorderSide(color: Color(0xffcccccc), width: 1))),
      child: Row(
        children: <Widget>[
          Align(
            child: Text(name),
          ),
          Expanded(
            child: Align(
              alignment: Alignment.topRight,
              child: Text(value),
            ),
          )
        ],
      ),
    );
  }
}
